import {Injectable} from '@angular/core';
import {HttpClient, HttpHeaders, HttpParams} from "@angular/common/http";
import { Observable, throwError } from 'rxjs';
import { catchError, retry } from 'rxjs/operators';
import {Log} from "./log";

@Injectable({
  providedIn: 'root'
})
export class LogService {

  constructor(
    private http: HttpClient
  ) {  }

  // getLogsUrl = 'localhost:8080/log/log';
  getLogsUrl = '../../assets/logMock.json';

  httpGetLogs():Observable<Log[]>{
    return this.http.get<Log[]>(this.getLogsUrl)
  }

}
